#ifndef _HCIT_RDA5868_DMA_H
#define _HCIT_RDA5868_DMA_H

/******************************************************************************
 * MODULE NAME:  Hcit_rda5868_dma.h
 * PROJECT CODE: BlueStream
 * DESCRIPTION:  HCI DMA driver for RDA5868
 * AUTHOR:       Lu Gongyu
 * DATE:          2008/04/28
 *
 * SOURCE CONTROL: $Id: hcit_rda5868_dma.h,v 1.6 2008/11/17 04:00:10 tianwq Exp $
 *
 *
 ******************************************************************************/
#include "sys_rda_arm.h"

#define RDA_AHB_DMA_CONTROL_REG                     (RDA_AHB_DMA_BASE + 0x00)
#define RDA_AHB_DMA_SRCADDR_REG                     (RDA_AHB_DMA_BASE + 0x04)
#define RDA_AHB_DMA_DESTADDR_REG                    (RDA_AHB_DMA_BASE + 0x08)
#define RDA_AHB_DMA_DATALENGTH_REG                  (RDA_AHB_DMA_BASE + 0x0C)

#define RDA_AHB_DMA_CONTROL_SRC_INC_DES_INC         0
#define RDA_AHB_DMA_CONTROL_SRC_NOINC_DES_INC       1
#define RDA_AHB_DMA_CONTROL_SRC_INC_DES_NOINC       2
#define RDA_AHB_DMA_CONTROL_SRC_NOINC_DES_NOINC     3

#define RDA_AHB_DMA_CONTROL_WORD_TR                 0x08
#define RDA_AHB_DMA_CONTROL_HWORD_TR                0x04
#define RDA_AHB_DMA_CONTROL_BYTE_TR                 0x00

#define HCIT_RDA5868_DMA_MIN_SIZE                   (16)


void HCIT_RDA5868_DMA_Transport(volatile void *dest,volatile const void *src, u_int16 size,u_int8 type, u_int8 direct);

#endif
